package com.liran.entity;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: whh
 * @Date: 2024/4/24
 * @Description:
 */
@Slf4j
public enum OutsideAreaEnum {

    AMERICA("AMERICA","AMERICA",1),
    APAC("APAC","APAC",2),
    EMEA("EMEA","EMEA",3),
    DEPARTMENT("Innovation-Department（创新应用事业部）","创新应用事业部",4),
    SALE_SUPPORT("销售支持部","销售支持部",5),
    NORTH_AMERICA("North America","北美",6),
    IMA("IMA","IMA",7),
    East_Asia("East Asia","东亚",8),
    Latin_America("Latin America","拉美",9),
    ;

    String areaName;
    String targetAreaName;
    Integer index;
    OutsideAreaEnum(String areaName, String targetAreaName,Integer index){
        this.areaName = areaName;
        this.targetAreaName = targetAreaName;
        this.index = index;
    }

    public static OutsideAreaEnum getByAreaName(String areaName){
        for (OutsideAreaEnum chinaAreaEnum : OutsideAreaEnum.values()) {
            if(areaName.equals(chinaAreaEnum.getAreaName())){
                return chinaAreaEnum;
            }
        }
        return null;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getTargetAreaName() {
        return targetAreaName;
    }

    public void setTargetAreaName(String targetAreaName) {
        this.targetAreaName = targetAreaName;
    }
}
